// 商品类接口
import axios from '../utils/utils'

export let catelist=params=>axios.get('/goods/catelist',{params})

// 添加分类
export let addcate=params=>axios.post('/goods/addcate',params)

// 删除分类
export let delcate=params=>axios.get('/goods/delcate',{params})

// 编辑分类
export let editcate=params=>axios.post('/goods/editcate',params)

// 获取商品列表/goods/list
export let itemlist=params=>axios.get('/goods/list',{params})

// 删除商品/goods/del
export let deletfood=params=>axios.get('/goods/del',{params})

// 获取所有商品分类/goods/categories
export let categories=params=>axios.get('/goods/categories',{params})

// 修改商品信息/goods/edit
export let editgoods=params=>axios.post('/goods/edit',params)

// 添加商品
export let additem=params=>axios.post('/goods/add',params)

// 商品图片上传接口/goods/goods_img_upload
export let dityupload=params=>axios.post('/goods/goods_img_upload',params)